"""
Author: yida
Time is: 2022/2/27 20:43 
this Code: 
"""
import numpy as np

if __name__ == '__main__':
    arr = np.arange(10)
    y = np.zeros(10)
    print(arr)
    for i in range(10):
        y[i] = np.sum(arr[:i+1])
        print(y[i])